package com.lckoo.mail.receiver;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 邮箱属性相关配置
 */
@Getter
@Setter
@ConfigurationProperties(prefix = "mail.receiver")
public class MailReceiverProps {
    /**
     * 邮箱服务地址
     */
    private String host;
    /**
     * 端口
     */
    private int port = 993;
    /**
     * 用户名
     */
    private String username;
    /**
     * 密码
     */
    private String password;

    /**
     * 协议
     */
    private String protocol = "imap";
    /**
     * ssl
     */
    private String ssl;
    /**
     * idle 模式,默认开启
     */
    private boolean idle = true;
    /**
     * 轮询评率,默认10秒一次
     */
    private long pollFreq = 10000;
    /**
     * 运行节点
     */
    private boolean runNode = false;

    /**
     * 运行节点判断的key
     */
    private String runNodeKey;
    /**
     * 运行节点判断的value
     */
    private String runNodeValue;
}
